package com.literature.threeGroup.mapper;

import com.literature.threeGroup.pojo.Cover;
import com.literature.threeGroup.pojo.CoverExample;
import java.util.List;

import com.literature.threeGroup.pojo.Purchase;
import com.literature.threeGroup.vo.CoverVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface CoverMapper {
    long countByExample(CoverExample example);

    int deleteByExample(CoverExample example);


    /**
     * @name  删除
     * @Author VULCAN
     * @Date 2020/2/1 15:52
     */
    int deleteByPrimaryKey(String id);
    /**
     * @name  新增套
     * @Author VULCAN
     * @Date 2020/2/1 12:37
     */
    int insert(Cover record);

    int insertSelective(Cover record);

    List<Cover> selectByExample(CoverExample example);

    /**
     * @name  id查询
     * @Author VULCAN
     * @Date 2020/2/1 12:38
     */
    Cover selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Cover record, @Param("example") CoverExample example);

    int updateByExample(@Param("record") Cover record, @Param("example") CoverExample example);

    int updateByPrimaryKeySelective(Cover record);

    /**
     * @name  套信息修改
     * @Author VULCAN
     * @Date 2020/2/1 12:36
     */
    int updateByPrimaryKey(Cover record);
    //查询参数表
    String findCoverName(@Param("idList") List<String> idList);
    /**
     * @name  模糊
     * @Author VULCAN
     * @Date 2020/2/1 12:53
     */
    List<Cover> findcoverlikename(Cover covers);
    /**
     * @name  套学科统计
     * @Author VULCAN
     * @Date 2020/2/4 16:08
     */
    List<Purchase> selectcoversubjectTj();
    /**
     * @name  套国家统计
     * @Author VULCAN
     * @Date 2020/2/4 16:08
     */
    List<Purchase> selectcovercountryTj();
    /**
     * @name  套语种统计
     * @Author VULCAN
     * @Date 2020/2/4 16:08
     */
    List<Purchase> selectcoverlanguageTj();
    /**
     * @name  套文献统计
     * @Author VULCAN
     * @Date 2020/2/4 16:08
     */
    List<Purchase> selectcovertypeTj();
    /**
     * @name  套载体统计
     * @Author VULCAN
     * @Date 2020/2/4 16:08
     */
    List<Purchase> selectcovercarrierTj();
}